package com.song.cloud.seata.service;

import com.song.cloud.common.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author ZhangGuisong
 * @Date 2021/3/3-22:56
 */
@FeignClient("seata-storage-service")
public interface storageService {
    @PostMapping("/storage/decreateStorage")
    public CommonResult decreateStorage(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);

}
